package com.sqpoll.android.group;

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;

import com.sqpoll.android.R;

/**
 * The Dialog fragment for exiting a group.
 * 
 * @author Younggue Bae
 */
public class GroupExitDialogFragment extends DialogFragment {
	
	public static final String TAG = "GroupExitDialogFragment";
	
  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
      AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
      
      builder.setMessage(R.string.dialog_message_group_exit)
      		   .setTitle(R.string.dialog_title_group_exit)
      		   .setIcon(R.drawable.ic_dialog_warning)
             .setPositiveButton(R.string.button_save, new DialogInterface.OnClickListener() {
                 public void onClick(DialogInterface dialog, int id) {

                 }
             })
             .setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {
                 public void onClick(DialogInterface dialog, int id) {

                 }
             });

      return builder.create();
  }

}
